package cn.meng.base.vo;

import lombok.Getter;

/**
 * 封装异常消息VO,用于将错误消息统一格式转json返回给前端处理
 * @author 万梦辉
 */
@Getter
public class ExceptionMessageVo {

    private Integer status;
    private String message;

    public ExceptionMessageVo(Integer status, String message) {
        this.status = status;
        this.message = message;
    }

    public ExceptionMessageVo(BusinessException e) {
        this.status = e.getStatus();
        this.message = e.getMessage();
    }
}
